package com.ruoyi.cost.service.impl;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.cost.domain.AccSubject;
import com.ruoyi.cost.domain.Account;
import com.ruoyi.cost.domain.Balance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cost.mapper.AccAmountMapper;
import com.ruoyi.cost.domain.AccAmount;
import com.ruoyi.cost.service.IAccAmountService;

/**
 * 科目余额及发生额Service业务层处理
 * 
 * @author 王志旸
 * @date 2024-07-09
 */
@Service
public class AccAmountServiceImpl  extends ServiceImpl<AccAmountMapper,AccAmount> implements IAccAmountService



{
    @Autowired
    private AccAmountMapper accAmountMapper;

    /**
     * 查询科目余额及发生额
     * 
     * @param id 科目余额及发生额主键
     * @return 科目余额及发生额
     */
    @Override
    public AccAmount selectAccAmountById(String id)
    {
        return accAmountMapper.selectAccAmountById(id);
    }

    /**
     * 查询科目余额及发生额列表
     *
     * @return 科目余额及发生额
     */
    @Override
    public List<AccAmount> selectAccAmountList(String accMode,String accSubName)
    {
        return accAmountMapper.selectAccAmountList(accMode,accSubName);
    }

    @Override
    public List<AccAmount> selectAccAmountList1(AccAmount accAmount)
    {
        return accAmountMapper.selectAccAmountList1(accAmount);
    }

    /**
     * 新增科目余额及发生额
     * 
     * @param accAmount 科目余额及发生额
     * @return 结果
     */
    @Override
    public int insertAccAmount(AccAmount accAmount)
    {
        return accAmountMapper.insertAccAmount(accAmount);
    }

    /**
     * 修改科目余额及发生额
     * 
     * @param accAmount 科目余额及发生额
     * @return 结果
     */
    @Override
    public int updateAccAmount(AccAmount accAmount)
    {
        return accAmountMapper.updateAccAmount(accAmount);
    }

    /**
     * 批量删除科目余额及发生额
     * 
     * @param ids 需要删除的科目余额及发生额主键
     * @return 结果
     */
    @Override
    public int deleteAccAmountByIds(String[] ids)
    {
        return accAmountMapper.deleteAccAmountByIds(ids);
    }

    /**
     * 删除科目余额及发生额信息
     * 
     * @param id 科目余额及发生额主键
     * @return 结果
     */
    @Override
    public int deleteAccAmountById(String id)
    {
        return accAmountMapper.deleteAccAmountById(id);
    }

    @Override
    public List<Balance> listBalance(String accMode) {
        return baseMapper.listBalance(accMode);
    }

    @Override
    public List<AccAmount> listSupBalance(String accMode, String accSubName) {

        return baseMapper.listSupBalance(accMode,accSubName);
    }

    @Override
    public List<AccAmount> listSupBalance2(String accMode, String accSubName) {

        return baseMapper.listSupBalance2(accMode,accSubName);
    }

    @Override
    public AccAmount getBeginYearAmount(String vouSubType, String accMode) {
        return baseMapper.getBeginYearAmount(vouSubType,accMode);
    }

    @Override
    public AccAmount getEndYearAmount(String vouSubType, String accMode) {
        return baseMapper.getEndYearAmount(vouSubType,accMode);
    }

    @Override
    public List<AccAmount> getBeginCurr(String accMode, String accSubName) {
        return baseMapper.getBeginCurr(accMode,accSubName);
    }
    @Override
    public AccAmount getBeginCurr1(String accMode, String accSubName) {
        return baseMapper.getBeginCurr1(accMode,accSubName);
    }

    @Override
    public List<AccAmount> getBeginCurr2(String accMode, String accSubName, String spare, List<String> spareList) {
        return baseMapper.getBeginCurr2(accMode,accSubName,spare,spareList);
    }

    @Override
    public Map getSubAssistedAcc(String accSubNum, String accBusiness,String accMode) {
        return baseMapper.getSubAssistedAcc(accSubNum,accBusiness,accMode);
    }

    @Override
    public String getSupSpares(String accSubNum, String accBusiness,String id,String accMode,String spare) {
        return baseMapper.getSupSpares(accSubNum,accBusiness,id,accMode,spare);
    }
    @Override
    public String getVouSupSpares(String accSubNum, String accBusiness,String id,String accMode,String spare) {
        return baseMapper.getVouSupSpares(accSubNum,accBusiness,id,accMode,spare);
    }
}
